<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    
    <head>
        <meta charset="utf-8">
        <title>
            X-admin v1.0
        </title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="/P201703/bbs/Public/admin/css/x-admin.css" media="all">

        <script src="/P201703/bbs/Public/admin/lib/layui/layui.js" charset="utf-8">
        </script>
        <script src="/P201703/bbs/Public/admin/js/x-admin.js"></script>
        <script src="/P201703/bbs/Public/admin/js/x-layui.js"></script>
    </head>
    <script type="text/javascript" src="https://cdn.bootcss.com/echarts/3.6.2/echarts.min.js"></script>

<div id="main" style="width: 600px;height:400px;"></div>

<script type="text/javascript">

	var num = <?php echo $num ?>;

	var date = <?php echo $date ?>;
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById('main'));

    // 指定图表的配置项和数据
    var option = {
        title: {
            text: '网站7天注册量'
        },
        tooltip: {},
        legend: {
            data:['注册量']
        },
        xAxis: {
            data: date
        },
        yAxis: {},
        series: [{
            name: '注册量',
            type: 'bar',
            data: num
        }]
    };

    // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
</script>